package com.kgcx.opc.entity;

import java.io.Serializable;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2017/11/17 16:03
 * @since 0.1
 */
public class Message implements Serializable {

	private static final long serialVersionUID = -1L;
	/**
	 * 消息编号,建议使用uuid
	 */
	private String id;
	/**
	 * 消息类型
	 */
	private String type;
	/**
	 * 保留参数c
	 */
	private Object params;
	/**
	 * 消息内容
	 */
	private Object body;
	/**
	 * 消息创建时间
	 */
	private String createTime;
	/**
	 * 业务数据操作类型
	 */
	private Integer flag;

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Object getBody() {
		return body;
	}
	public void setBody(Object body) {
		this.body = body;
	}
	public Object getParams() {
		return params;
	}
	public void setParams(Object params) {
		this.params = params;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}
}
